x86/mm: fix checks against max_mapped_pfn
authorJan Beulich <JBeulich@suse.com>
Thu, 3 Apr 2014 07:47:28 +0000 (08:47 +0100)
committerTim Deegan <tim@xen.org>
Thu, 3 Apr 2014 11:08:43 +0000 (12:08 +0100)
commit088ee1d47b65d6bb92de61b404805f4ca92e3240
tree29b47ef1e2cd0f3d247bfe5ae6aa2238a0e15d47
parentca0f21841ddc4b2e2f4e4a74e2e39b70bd6b0aff
x86/mm: fix checks against max_mapped_pfn

This value is an inclusive one, i.e. this fixes an off-by-one in memory
sharing and an off-by-two in shadow code.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/shadow/common.c